<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/6
 * Time: 15:11
 */

namespace app\models;

use Yii;
class TencentLive extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return '{{%tencent_live}}';
    }
    public function rules()
    {
        return [
           [['store_id','roomid'],'required'],
            [['store_id','is_open'],'integer'],
            [['roomid'],'string']
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return[
          'store_id'=>'StoreID',
            'roomid'=>'房间id',
        ];
    }
}